package city.spring.modules.sitting.entity;

import city.spring.configure.mybatis.FillCurrentUser;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

/**
 * 实体类：医生坐诊记录
 *
 * @author 侯坤林
 * @date 2020-07-16 15:48:26
 */
@Data
@TableName("sitting_record")
public class SittingRecordEntity implements Serializable {

    /**
     * 主键记录
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 就诊医生
     */
    @FillCurrentUser(FillCurrentUser.Type.UserId)
    @TableField(fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NEVER)
    private String userId;

    /**
     * 老人ID
     */
    private String oldmanId;

    /**
     * 就诊日期
     */
    private LocalDate date;

    /**
     * 症状
     */
    private String symptom;

    /**
     * 诊断
     */
    private String diagnosis;

    /**
     * 建议
     */
    private String suggest;

    /**
     * 创建时间
     */
    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    private Date gmtCreated;

    /**
     * 更新时间
     */
    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    private Date gmtModified;
}